package net.htjs.juc.thread;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class RunnableBaseDemo {

    public static void main(String[] args) {
        Runnable runnable = () ->  log.info("Hello, Runnable");

        Runnable runnable1 = () -> {
            //Alt + enter会把匿名内部类的方法改造成Lambda方法
            log.info("Hello, runnable1");
        };

        new Thread(runnable).start();
        new Thread(runnable1).start();
    }

}
